import numpy as np

a = np.array([2, 3, 4], dtype=int)
print(a.dtype)

b = np.zeros((3, 4))

# 搞一个3行4列的1
c = np.ones((3, 4))

print(b)
print(c)

d = np.arange(10, 20, 2)
print(d)

e = np.arange(12)
print(e)

# 输出三行四列
f = np.arange(12).reshape((3, 4))
print(f)

# 生成线段
g = np.linspace(1, 10, 5)
print(g)
